package com.moyu.shopapp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moyu.shopapp.entity.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ZJF
 * @description 针对表【goods】的数据库操作Mapper
 * @createDate 2023-12-01 16:38:29
 * @Entity com.moyu.shopapp.entity.Goods
 */
@Mapper
public interface GoodsMapper extends BaseMapper<Goods> {
    @Select("select DISTINCT category from goods")
    List<String> selectDistinctCategory();
}
